package com.th.supcom.pds.drugreturn.client.widget;

import com.extjs.gxt.ui.client.widget.form.TextField;
import com.th.supcom.pds.internal.client.widget.MedicareCardField;

/**
 * 门诊退药文本域组件集合
 * 
 * @author yzhang
 */
public class DrugReturnAndRefundFields
{
    /** 出生年月 */
    private TextField <String> m_birthDaTetField;

    /** 患者ID */
    private TextField <String> m_patiIdField;
    /** 姓名 */
    private TextField <String> m_patiNameField;
    /** 处方号 */
    private TextField <String> m_prescNoField;
    /** 余额 */
    private TextField <Double> m_remainingSumField;
    /** 性别 */
    private TextField <String> m_sexField;

    /** 处方来源 */
    private TextField <String> m_prescSource;
    /** 费别 */
    private TextField <String> m_visitTypeNameField;
    /** 就诊次数 */
    private TextField <String> m_visitIdField;
    /** 入科时间 */
    private TextField <String> m_visitBeginDateField;
    /** 在院科室 */
    private TextField <String> m_deptNameField;
    /** 在科天数 */
    private TextField <String> m_day;
    /** 床号 */
    private TextField <String> m_number;

    /** 医保卡 */
    private MedicareCardField m_medicareCardField;

    /**
     * 构造方法
     */
    public DrugReturnAndRefundFields ()
    {
        createTextFields ();
    }

    private void createTextFields ()
    {

        m_prescNoField = new TextField <String> ();
        m_prescNoField.setFieldLabel ("处方号");

        m_prescSource = new TextField <String> ();
        m_prescSource.setFieldLabel ("患者类型");
        m_prescSource.setEnabled (false);

        m_patiNameField = new TextField <String> ();
        m_patiNameField.setFieldLabel ("姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名");
        m_patiNameField.setEnabled (false);

        m_patiIdField = new TextField <String> ();
        m_patiIdField.setFieldLabel ("患&nbsp;者&nbsp;I&nbsp;D&nbsp;");
        m_patiIdField.setEnabled (false);

        m_sexField = new TextField <String> ();
        m_sexField.setFieldLabel ("性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别");
        m_sexField.setEnabled (false);

        m_birthDaTetField = new TextField <String> ();
        m_birthDaTetField.setFieldLabel ("出生年月");
        m_birthDaTetField.setEnabled (false);

        m_remainingSumField = new TextField <Double> ();
        m_remainingSumField.setFieldLabel ("余&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额");
        m_remainingSumField.setEnabled (false);

        m_visitTypeNameField = new TextField <String> ();
        m_visitTypeNameField.setFieldLabel ("费别");
        m_visitTypeNameField.setEnabled (false);

        m_visitIdField = new TextField <String> ();
        m_visitIdField.setFieldLabel ("就诊次数");
        m_visitIdField.setEnabled (false);

        m_visitBeginDateField = new TextField <String> ();
        m_visitBeginDateField.setFieldLabel ("入科时间");
        m_visitBeginDateField.setEnabled (false);

        m_deptNameField = new TextField <String> ();
        m_deptNameField.setFieldLabel ("在院科室");
        m_deptNameField.setEnabled (false);

        m_day = new TextField <String> ();
        m_day.setFieldLabel ("在科天数");
        m_day.setEnabled (false);

        m_number = new TextField <String> ();
        m_number.setFieldLabel ("床号");
        m_number.setEnabled (false);
    }

    /**
     * 获取出生年月控件
     * 
     * @return
     */
    public TextField <String> getBirthDaTetField ()
    {
        return m_birthDaTetField;
    }

    /**
     * 获取病人ID控件
     * 
     * @return
     */
    public TextField <String> getPatiIdField ()
    {
        return m_patiIdField;
    }

    /**
     * 获取病人姓名控件
     * 
     * @return
     */
    public TextField <String> getPatiNameField ()
    {
        return m_patiNameField;
    }

    /**
     * 获取处方号控件
     * 
     * @return
     */
    public TextField <String> getPrescNoField ()
    {
        return m_prescNoField;
    }

    /**
     * 获取余额
     * 
     * @return
     */
    public TextField <Double> getRemainingSumField ()
    {
        return m_remainingSumField;
    }

    /**
     * 获取性别控件
     * 
     * @return
     */
    public TextField <String> getSexField ()
    {
        return m_sexField;
    }

    /**
     * 获取刷卡控件
     * 
     * @return
     */
    public MedicareCardField getMedicareCardField ()
    {
        return m_medicareCardField;
    }

    /**
     * 设置 刷卡控件
     * 
     * @param medicareCardField
     */
    public void setMedicareCardField (MedicareCardField medicareCardField)
    {
        m_medicareCardField = medicareCardField;
    }

    public TextField <String> getPrescSource ()
    {

        return m_prescSource;
    }

    public TextField <String> getVisitTypeNameField ()
    {

        return m_visitTypeNameField;
    }

    public TextField <String> getVisitIdField ()
    {

        return m_visitIdField;
    }

    public TextField <String> getVisitBeginDateField ()
    {

        return m_visitBeginDateField;
    }

    public TextField <String> getDeptNameField ()
    {

        return m_deptNameField;
    }

    public TextField <String> getDay ()
    {

        return m_day;
    }

    public TextField <String> getNumber ()
    {

        return m_number;
    }

}
